package com.bsierp.business.pojo;

/**
 * Message entity. @author MyEclipse Persistence Tools
 */

public class Message implements java.io.Serializable {

    // Fields

    private Integer messageId;
    private User userByReceiverId;
    private User userBySenderId;
    private String messageContent;
    private String messageTime;
    private Integer messageState;

    // Constructors

    /** default constructor */
    public Message() {
    }

    /** full constructor */
    public Message(User userByReceiverId, User userBySenderId,
            String messageContent, String messageTime, Integer messageState) {
        this.userByReceiverId = userByReceiverId;
        this.userBySenderId = userBySenderId;
        this.messageContent = messageContent;
        this.messageTime = messageTime;
        this.messageState = messageState;
    }

    // Property accessors

    public Integer getMessageId() {
        return this.messageId;
    }

    public void setMessageId(Integer messageId) {
        this.messageId = messageId;
    }

    public User getUserByReceiverId() {
        return this.userByReceiverId;
    }

    public void setUserByReceiverId(User userByReceiverId) {
        this.userByReceiverId = userByReceiverId;
    }

    public User getUserBySenderId() {
        return this.userBySenderId;
    }

    public void setUserBySenderId(User userBySenderId) {
        this.userBySenderId = userBySenderId;
    }

    public String getMessageContent() {
        return this.messageContent;
    }

    public void setMessageContent(String messageContent) {
        this.messageContent = messageContent;
    }

    public String getMessageTime() {
        return this.messageTime;
    }

    public void setMessageTime(String messageTime) {
        this.messageTime = messageTime;
    }

    public Integer getMessageState() {
        return this.messageState;
    }

    public void setMessageState(Integer messageState) {
        this.messageState = messageState;
    }

}